import { createApp } from 'vue'
import '@/style/reset.scss'
import App from '@/App.vue'
const app = createApp(App);
// 引入饿了么插件,先用包安装element-plus 
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
//饿了么汉化
import zhCn from 'element-plus/es/locale/lang/zh-cn'
//引入pinia仓库
import pinia from '@/store/index'

//引入全局组件

import HospitalTop from '@/components/hospitalTop/index.vue'
//@ts-ignore
import HospitalBottom from '@/components/hospitalBottom/index.vue'
//@ts-ignore
import Login from '@/components/login/index.vue'

//引入路由方法
import router from '@/router/index'
app.component('HospitalTop', HospitalTop)
app.component('HospitalBottom', HospitalBottom)
app.component('Login', Login)
app.use(router)
//应用饿了么组件
// app.use(ElementPlus)
app.use(ElementPlus, {
    locale: zhCn,
})
app.use(pinia);
import './permisstion'
app.mount('#app');

